<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMobileRechargeTaskTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('mobile_recharge_task', function (Blueprint $table) {
            $table->increments('id');
            $table->unsignedInteger('recharge_order_id')->comment('');
            $table->unsignedInteger('recharge_order_detail_id')->comment('');
            $table->string('sn',50)->comment('');
            $table->unsignedInteger('amount')->comment('充值金额');
            $table->string('mobile',50)->comment('');
            $table->timestamp('pay_at');
            $table->integer('status');
            $table->text('result');

            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('mobile_recharge_task');
    }
}
